set -x

# experimental/taekwon/run_balance_plot.sh 20200219-20200225

function on_symbol() {
  COIN2_ORDER_LOG=1 RUST_TOPIC_RECORD=1 ./pyrunner experimental/taekwon/balance_plot.py --trading_date=$1 --time_range=0-24 --feed_machine=feed-best.ap-northeast-1.aws --orderlog_machine=strategy-41.ap-northeast-1.huobi --subsymbols=$2 --force_rerun=True --owner=prestoinvt67 --use_feed_cache=True --run_mode=dump
  RUST_TOPIC_RECORD=1 ./pyrunner experimental/taekwon/balance_plot.py --trading_date=$1 --time_range=0-24 --feed_machine=feed-best.ap-northeast-1.aws --orderlog_machine=strategy-16.ap-northeast-1.huobi --subsymbols=$2 --owner=prestoinvt07 --use_feed_cache=True --run_mode=dump
  ./pyrunner experimental/taekwon/balance_plot.py --trading_date=$1 --run_mode=plot --subsymbols=$2
}

on_symbol $1 Huobi:Futures:BTC-USD.CURRENT_QUARTER
on_symbol $1 Huobi:Futures:ETH-USD.CURRENT_QUARTER
on_symbol $1 Huobi:Futures:EOS-USD.CURRENT_QUARTER
